package com.ruoyi.book.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.book.domain.BookInstitutionInfo;
import com.ruoyi.book.domain.HuiWenApiUrl;
import com.ruoyi.book.mapper.BookInstitutionInfoMapper;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.http.HttpUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.ruoyi.book.mapper.BookCommissionMapper;
import com.ruoyi.book.domain.BookCommission;
import com.ruoyi.book.service.IBookCommissionService;

/**
 * 图书委托Service业务层处理
 * 
 * @author hd
 * @date 2025-03-06
 */
@Service
public class BookCommissionServiceImpl implements IBookCommissionService 
{
    @Autowired(required=false)
    private BookCommissionMapper bookCommissionMapper;

    /**
     * 查询图书委托
     * 
     * @param commissionId 图书委托主键
     * @return 图书委托
     */
    @Override
    public BookCommission selectBookCommissionByCommissionId(Long commissionId)
    {
        return bookCommissionMapper.selectBookCommissionByCommissionId(commissionId);
    }

    /**
     * 查询图书委托列表
     * 
     * @param bookCommission 图书委托
     * @return 图书委托
     */
    @Override
    public List<BookCommission> selectBookCommissionList(BookCommission bookCommission)
    {
        return bookCommissionMapper.selectBookCommissionList(bookCommission);
    }

    /**
     * 新增图书委托
     * 
     * @param bookCommission 图书委托
     * @return 结果
     */
    @Override
    public int insertBookCommission(BookCommission bookCommission)
    {
        return bookCommissionMapper.insertBookCommission(bookCommission);
    }

    /**
     * 修改图书委托
     * 
     * @param bookCommission 图书委托
     * @return 结果
     */
    @Override
    public int updateBookCommission(BookCommission bookCommission)
    {
        return bookCommissionMapper.updateBookCommission(bookCommission);
    }

    /**
     * 批量删除图书委托
     * 
     * @param commissionIds 需要删除的图书委托主键
     * @return 结果
     */
    @Override
    public int deleteBookCommissionByCommissionIds(Long[] commissionIds)
    {
        return bookCommissionMapper.deleteBookCommissionByCommissionIds(commissionIds);
    }

    /**
     * 删除图书委托信息
     * 
     * @param commissionId 图书委托主键
     * @return 结果
     */
    @Override
    public int deleteBookCommissionByCommissionId(Long commissionId)
    {
        return bookCommissionMapper.deleteBookCommissionByCommissionId(commissionId);
    }

}


